Skip to content

Conversation

avolmat-st
Copy link

Allow selection of a custom section for memory-poll and / or VDB based on zephyr memory-regions.
This takes advantages that zephyr,memory-region automatically have sections being created, hence allowing to easily indicate into which memory-region to store data.

@zephyrbot zephyrbot added the area: LVGL Light and Versatile Graphics Library Support label Sep 20, 2025
@avolmat-st avolmat-st marked this pull request as draft September 20, 2025 19:44
@avolmat-st avolmat-st force-pushed the pr-lvgl-generic-sections branch from 26534a2 to 42a773b Compare September 21, 2025 19:22
@avolmat-st
Copy link
Author

Partially updated without addition of choice for the time being. I will see for the choice / endchoice section, which will probably will make the PR bigger in order to also update existing Kconfig.default / conf files.

@avolmat-st
Copy link
Author

This idea of this PR would be to avoid having to prepare linker scripts such as

boards/st/stm32h747i_disco/dc_ram.ld, boards/st/stm32h757i_eval/dc_ram.ld, boards/st/stm32h7b3i_dk/dc_ram.ld

for all boards, which also do not give flexibility on which section to use.

@avolmat-st avolmat-st force-pushed the pr-lvgl-generic-sections branch from 42a773b to 1df3b9f Compare September 22, 2025 08:03
@avolmat-st avolmat-st marked this pull request as ready for review September 22, 2025 08:04
@avolmat-st
Copy link
Author

Update following @JarmouniA proposal for config name and added depend !... to avoid possibility to have both mode enabled at the same time. I only put it on one side (ZEPHYR_REGION depends on !CUSTOM_SECTION) to avoid dependency loop.

@avolmat-st
Copy link
Author

@erwango should I also remove the existing stm32 lvgl_buf related linker scripts and update the related conf to make usage of this new option instead ?

@faxe1008
Copy link
Contributor

should I also remove the existing stm32 lvgl_buf related linker scripts and update the related conf to make usage of this new option instead ?

+1 from me, since this should ensure it is built during CI and shows users looking for refrence usage how to do it.

@erwango
Copy link
Member

erwango commented Sep 23, 2025

re it is built during CI and shows users looking for refrence usage

Yeah, go ahead. Let's clean this up right away.
Btw, should also impact #96378

Copy link
Member

@uLipe uLipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the others comments, LGTM.

@erwango
Copy link
Member

erwango commented Sep 24, 2025

@avolmat-st Please rebase to fix CI issue.

@avolmat-st avolmat-st force-pushed the pr-lvgl-generic-sections branch from a1d55c7 to 5a41008 Compare September 24, 2025 06:44
@avolmat-st
Copy link
Author

Thanks @JarmouniA, updates applied. First push before rebase to be able to see updates.

Alain Volmat added 2 commits September 24, 2025 08:46
Allow selection of a custom section for memory-poll and / or VDB
based on zephyr memory-regions.
This takes advantages that zephyr,memory-region automatically have
sections being created, hence allowing to easily indicate into which
memory-region to store data.

Signed-off-by: Alain Volmat <[email protected]>
Following introduction of LV_Z_MEMORY_POOL_ZEPHYR_REGION and
LV_Z_VDB_ZEPHYR_REGION, remove the usage of the option
LV_Z_VDB_CUSTOM_SECTION and the related linker scripts for
STM32 boards & shields.

Signed-off-by: Alain Volmat <[email protected]>
@avolmat-st avolmat-st force-pushed the pr-lvgl-generic-sections branch from 5a41008 to d9f1a45 Compare September 24, 2025 06:49
@avolmat-st
Copy link
Author

Thanks @erwango, now rebased.

Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@avolmat-st
Copy link
Author

@faxe1008, could you have a look again ?

Copy link
Contributor

@kartben kartben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please mention new Kconfig options in release notes

@JarmouniA JarmouniA added the Release Notes To be mentioned in the release notes label Sep 30, 2025
@jhedberg jhedberg merged commit f8393a4 into zephyrproject-rtos:main Sep 30, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: LVGL Light and Versatile Graphics Library Support area: Shields Shields (add-on boards) platform: STM32 ST Micro STM32 Release Notes To be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants